package com.dgt.trade.service.impl;

import com.dgt.trade.dao.NewsDao;
import com.dgt.trade.entitys.News;
import com.dgt.trade.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsServiceImpl implements NewsService {

    @Autowired
    private NewsDao newsDao;

    @Override
    public List<News> selectNewsById(String id) {
        return newsDao.selectNewsById(id);
    }
}
